package com.haiya.mediator.conceptdemo;

public class ConcreteColleagueA extends Colleague {
    @Override
    public void send(String msg) {
        System.out.println("具体同事A发送消息: " + msg);
        mediator.relay(this, msg);
    }

    @Override
    public void receive(String msg) {
        System.out.println("具体同事A接收到消息: " + msg);
    }
}
